package com.auxgroup.smarthome.dto;

import javax.persistence.Transient;
import javax.validation.constraints.NotNull;

/**
 * Created by kevinchen on 2017/2/25.
 */
public class LoginDto {
    @NotNull(message = "用户名不能为空")
    private String userName;
    @NotNull(message = "密码不能为空")
    private String password;
    private String captchaCode;
    private String captchaValue;
    @Transient
    private boolean isNeedIsCaptcha = false;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCaptchaCode() {
        return captchaCode;
    }

    public void setCaptchaCode(String captchaCode) {
        this.captchaCode = captchaCode;
    }

    public String getCaptchaValue() {
        return captchaValue;
    }

    public void setCaptchaValue(String captchaValue) {
        this.captchaValue = captchaValue;
    }

    public boolean isNeedIsCaptcha() {
        return isNeedIsCaptcha;
    }

    public void setNeedIsCaptcha(boolean needIsCaptcha) {
        isNeedIsCaptcha = needIsCaptcha;
    }

}
